
import axios from "axios"
import { COMMENTITEM } from "./comment.d"

//评论
export const commit = {
    getArchivCommit: <T>(id: T, params: COMMENTITEM) => axios.get(`/api/comment/host/${id}`, { params }),
    createcomment: <T>(data: T) => axios.post(`/api/comment`, data)
}

